<?php

/* $echoxml = "<xml>
		<ToUserName><![CDATA[".$fromName."]]></ToUserName>
		<FromUserName><![CDATA[".$toName."]]></FromUserName>
		<CreateTime>".time()."</CreateTime>
		<MsgType><![CDATA[text]]></MsgType>
		<Content><![CDATA[12-".$huifu."]]></Content>
		<MsgId>".time().rand(100000,999999)."</MsgId>
	</xml>";

if($mType == "news"){
	$echoxml = "
<xml>
	<ToUserName><![CDATA[oVlfXshaeFa9-B8Zn_cNewYCKWvE]]></ToUserName>
	<FromUserName><![CDATA[gh_720688f7b5c4]]></FromUserName>
	<CreateTime>1574388163</CreateTime>
	<MsgType><![CDATA[news]]></MsgType>
	<ArticleCount>1</ArticleCount>
	<Articles>
		<item>
			<Title><![CDATA[title11]]></Title>
			<Description><![CDATA[description1]]></Description>
			<PicUrl><![CDATA[gzh.kcbjkq.com/sig/3.jpg]]></PicUrl>
			<Url><![CDATA[www.baidu.com]]></Url>
		</item>
	</Articles>
</xml>";
} */

$echoxml = "<xml>
		<ToUserName><![CDATA[".$fromName."]]></ToUserName>
		<FromUserName><![CDATA[".$toName."]]></FromUserName>
		<CreateTime>".time()."</CreateTime>
		<MsgType><![CDATA[".$mType."]]></MsgType>";

if($mType == "text"){
	$echoxml .= "<Content><![CDATA[12-".$huifu."]]></Content>
		<MsgId>".time().rand(100000,999999)."</MsgId>";
}elseif($mType == "news"){
	$echoxml .= "<ArticleCount>1</ArticleCount>
	<Articles>
		<item>
			<Title><![CDATA[title11]]></Title>
			<Description><![CDATA[".$huifu."]]></Description>
			<PicUrl><![CDATA[gzh.kcbjkq.com/sig/3.jpg]]></PicUrl>
			<Url><![CDATA[www.baidu.com]]></Url>
		</item>
	</Articles>";
}

$echoxml .= "</xml>";


?>